-- GENERATED SPELL FOR [Deathforge Over-Smith] --


function spell0_19978(pUnit, Event) --@Slime Spray,n/a--
pUnit:FullCastSpellOnTarget(36486,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19978', 14000, 1)
end

function spell1_19978(pUnit, Event) --@Toxic Slime,Self--
pUnit:FullCastSpellOnTarget(37615,pUnit)
pUnit:RegisterEvent('Sorts_19978', 11500, 1)
end

function Sorts_19978(pUnit, Event)
local choix_sorts_19978 = math.random(0, 1)
if choix_sorts_19978 == 0 then
pUnit:RegisterEvent('spell0_19978', 1, 1)
end
if choix_sorts_19978 == 1 then
pUnit:RegisterEvent('spell1_19978', 1, 1)
end
end

function mob19978_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19978', math.random(1500, 3000), 1)
end

function mob19978_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19978_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19978_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19978, 1, 'mob19978_Action')
RegisterUnitEvent(19978, 2, 'mob19978_Leave')
RegisterUnitEvent(19978, 3, 'mob19978_Kill')
RegisterUnitEvent(19978, 4, 'mob19978_Die')
